package VN.EDU.IMIC.DEVELOPER.NGUYENTHUYOANH_LV1_02;

import java.util.Scanner;

public class Views {

	public static void main(String[] args) {

		PhepToan objPhepToan = new PhepToan();
		Models objModels = new Models();
		Controler obj_Controler = new Controler(objModels, objPhepToan);
	
		Scanner obj_Scanner = new Scanner(System.in);

		// Nhap
		System.out.println("Nhap A:");
		objPhepToan.setA(obj_Scanner.nextFloat());

		System.out.println("Nhap B:");
		objPhepToan.setB(obj_Scanner.nextFloat());

		System.out.println("Chọn Phep tinh ");
		System.out.println("1: Cong  2: Tru   3:Nhan   4:Chia");
		objPhepToan.setPhepTinh(obj_Scanner.nextShort());
		
		

		float ketqua;
		ketqua=obj_Controler.TinhToan();
		System.out.println("Ket qua  la: "+ketqua);
		

	}
}
